package me.wcy.express.model;

import java.io.Serializable;
import com.google.gson.annotations.SerializedName;

public class ApiResult<T> implements Serializable {
    @SerializedName("code")
    private int code;
    @SerializedName("time")
    private long time;
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private T data;

    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }

    public long getTime() {
        return time;
    }
    public void setTime(long time) {
        this.time = time;
    }

    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }
    public void setData(T data) {
        this.data = data;
    }
}
